package com.example.demo.thread.pool;

/**
 * @author Code Farmer
 * @date 2020/5/30 15:04
 */
public class Task implements Runnable {

    private int id;

    public Task(int id) {
        this.id = id;
    }

    @Override
    public void run() {
        System.out.println("当前线程Id:" + this.id);
//            Thread.sleep(2000);
    }
}
